﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wap.Master" AutoEventWireup="true"
    CodeBehind="SurveySettings.aspx.cs" Inherits="Votations.NSurvey.WebAdmin.NSurveyAdmin.SurveySettings" %>

<%@ Register TagPrefix="uc1" TagName="SurveyOptionControl" Src="UserControls/SurveyOptionControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="MultiLanguagesEdit" Src="UserControls/MultiLanguagesEdit.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SurveyPrivacy" Src="UserControls/SurveyPrivacy.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        $(function () {
            var obj = {
                select: function(event, ui) { 
                    $("#tabindex").val(ui.index); 
                    __doPostBack();
                },

                selected: <%= selectedTabIndex %>
            };

            $("#tabs").tabs(obj);
        });
    </script>
    <input type="hidden" id="tabindex" name="tabindex" value="<%= selectedTabIndex %>" />
    <div id="usersTabEvents" style="display: none" runat="server" onclick="foo" />
    <div id="tabs" style="overflow:auto; min-height:740px;">
        <ul>
            <li><a href="#tabs-1">
                <%=GetPageResource("SurveyInfo")%></a></li>
            <li><a href="#tabs-2">
                <%=GetPageResource("SurveyInfoMultiLanguage")%></a></li>
            <li><a href="#tabs-3">
                <%=GetPageResource("SurveyInfoCompletion")%></a></li>
            <li><a href="#tabs-4">
                <%=GetPageResource("SurveyInfoLayout")%></a></li>
        </ul>
        <div id="tabs-1">
            <table class="TableLayoutContainer">
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="contentCell" valign="top">
                        <uc1:SurveyOptionControl ID="SurveyOption" runat="server"></uc1:SurveyOptionControl>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabs-2">
            <table class="TableLayoutContainer">
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="contentCell" valign="top">
                        <uc1:MultiLanguagesEdit ID="multiLanguagesEdit" runat="server"></uc1:MultiLanguagesEdit>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabs-3">
            <table class="TableLayoutContainer">
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="contentCell" valign="top">
                        <uc1:SurveyPrivacy ID="surveyPrivacy" runat="server"></uc1:SurveyPrivacy>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabs-4">
            <table class="TableLayoutContainer">
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="contentCell" valign="top">
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
